<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style type="text/css">
        .class1{
            color:red
        }

        .class2{
            font-size: 80px;
        }
    </style>
</head>
<body>
    <div id="app">
        <a v-bind:href="link" >百度</a>

        <span v-bind:class="{class1:isActive1, class2:isActive2}" v-bind:style="{'font-family': fontfamily, 'font-weight':fontweight}">您好</span>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        let vm = new Vue({
            el: "#app",
            data:{
                link: "http://www.baidu.com",
                isActive1: true,
                isActive2: true,
                fontweight: 600,
                fontfamily: "微软雅黑"
            }
        })
    </script>
</body>
</html>